package cn.dlc.com.feign;

import cn.dlc.com.feign.impl.Tcc2BankAccountServiceImpl;
import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author 邓立川
 * @date 2021/1/19 10:58
 * @desc 添加当前类的描述信息
 */
@FeignClient(name = "tcc-bank2", fallback = Tcc2BankAccountServiceImpl.class)
public interface Tcc2BankAccountService {


    @PostMapping("tcc2/transfer")
    // 这个不加不行，不加的话远程没有效果
    @Hmily
    Boolean transfer(@RequestParam String accountNo, @RequestParam Double amount);
}
